package Items;

import java.awt.Graphics;
import java.awt.image.BufferedImage;

import Constructions.Construction;
import Constructions.Recycler;
import Main.SpaceGame;

public abstract class Item 
{
	protected BufferedImage sprite = null;
	public int x,y;
	protected int numUseable = 0;
	public Construction associatedStorage = null;
	public int returnMetal = 0, returnBiomass = 0;
	public boolean beingPickedUp;
	
	public Item(int x, int y, SpaceGame main)
	{
		this.x = x;
		this.y = y;
		beingPickedUp = false;
		associatedStorage = new Recycler(x, y, main);
	}
	
	public void draw(Graphics g)
	{
		g.drawImage(sprite, x*10, y*10, null);
	}
	
	public abstract String getText();
}
